﻿namespace CKQDJK {
	using System;
	using SuperORM.Attributes;
	using System.ComponentModel;
	
	
	/// <summary>采矿权缴费</summary>
	[Object("采矿权缴费", "CKQDJK", "采矿权缴费")]
	[Browsable(true)]
	[DisplayName("采矿权缴费")]
	[ReadOnly(false)]
	[Serializable()]
	public class 采矿权缴费 : SuperORM.BusinessObject {
		
		/// <summary>内部变量：CK_GUID</summary>
		private string m_CK_GUID;
		
		/// <summary>标示属性CK_GUID是否为空的字段。</summary>
		private bool m_IsCK_GUIDNull = true;
		
		/// <summary>内部变量：许可证号</summary>
		private string m_许可证号;
		
		/// <summary>标示属性许可证号是否为空的字段。</summary>
		private bool m_Is许可证号Null = true;
		
		/// <summary>内部变量：签发时间</summary>
		private System.DateTime m_签发时间;
		
		/// <summary>标示属性签发时间是否为空的字段。</summary>
		private bool m_Is签发时间Null = true;
		
		/// <summary>内部变量：项目档案号</summary>
		private string m_项目档案号;
		
		/// <summary>标示属性项目档案号是否为空的字段。</summary>
		private bool m_Is项目档案号Null = true;
		
		/// <summary>内部变量：缴费年度</summary>
		private string m_缴费年度;
		
		/// <summary>标示属性缴费年度是否为空的字段。</summary>
		private bool m_Is缴费年度Null = true;
		
		/// <summary>内部变量：采矿权人</summary>
		private string m_采矿权人;
		
		/// <summary>标示属性采矿权人是否为空的字段。</summary>
		private bool m_Is采矿权人Null = true;
		
		/// <summary>内部变量：矿区面积</summary>
		private double m_矿区面积;
		
		/// <summary>标示属性矿区面积是否为空的字段。</summary>
		private bool m_Is矿区面积Null = true;
		
		/// <summary>内部变量：应缴使用费</summary>
		private double m_应缴使用费;
		
		/// <summary>标示属性应缴使用费是否为空的字段。</summary>
		private bool m_Is应缴使用费Null = true;
		
		/// <summary>内部变量：减缴金额</summary>
		private double m_减缴金额;
		
		/// <summary>标示属性减缴金额是否为空的字段。</summary>
		private bool m_Is减缴金额Null = true;
		
		/// <summary>内部变量：免缴金额</summary>
		private double m_免缴金额;
		
		/// <summary>标示属性免缴金额是否为空的字段。</summary>
		private bool m_Is免缴金额Null = true;
		
		/// <summary>内部变量：实缴使用费</summary>
		private double m_实缴使用费;
		
		/// <summary>标示属性实缴使用费是否为空的字段。</summary>
		private bool m_Is实缴使用费Null = true;
		
		/// <summary>内部变量：采矿权价款</summary>
		private double m_采矿权价款;
		
		/// <summary>标示属性采矿权价款是否为空的字段。</summary>
		private bool m_Is采矿权价款Null = true;
		
		/// <summary>内部变量：缴费日期</summary>
		private System.DateTime m_缴费日期;
		
		/// <summary>标示属性缴费日期是否为空的字段。</summary>
		private bool m_Is缴费日期Null = true;
		
		/// <summary>内部变量：缴款人</summary>
		private string m_缴款人;
		
		/// <summary>标示属性缴款人是否为空的字段。</summary>
		private bool m_Is缴款人Null = true;
		
		/// <summary>内部变量：滞纳金</summary>
		private double m_滞纳金;
		
		/// <summary>标示属性滞纳金是否为空的字段。</summary>
		private bool m_Is滞纳金Null = true;
		
		/// <summary>内部变量：滞纳说明</summary>
		private string m_滞纳说明;
		
		/// <summary>标示属性滞纳说明是否为空的字段。</summary>
		private bool m_Is滞纳说明Null = true;
		
		/// <summary>内部变量：备注</summary>
		private string m_备注;
		
		/// <summary>标示属性备注是否为空的字段。</summary>
		private bool m_Is备注Null = true;
		
		/// <summary>内部变量：DJ_CK_GUID</summary>
		private string m_DJ_CK_GUID;
		
		/// <summary>标示属性DJ_CK_GUID是否为空的字段。</summary>
		private bool m_IsDJ_CK_GUIDNull = true;
		
		/// <summary>内部变量：BSM</summary>
		private int m_BSM;
		
		/// <summary>标示属性BSM是否为空的字段。</summary>
		private bool m_IsBSMNull = true;
		
		public static string TypeID = "CKQDJK.采矿权缴费";
		
		/// <summary>属性CK_GUID</summary>
		[Member("CK_GUID", "CK_GUID", "System.String", 80, false, false, "CK_GUID")]
		[Browsable(true)]
		[DisplayName("CK_GUID")]
		[ReadOnly(false)]
		public string CK_GUID {
			get {
				return this.m_CK_GUID;
			}
			set {
				this.m_CK_GUID = value;
				this.m_IsCK_GUIDNull = false;
			}
		}
		
		/// <summary>属性许可证号</summary>
		[Member("许可证号", "许可证号", "System.String", 50, false, false, "许可证号")]
		[Browsable(true)]
		[DisplayName("许可证号")]
		[ReadOnly(false)]
		public string 许可证号 {
			get {
				return this.m_许可证号;
			}
			set {
				this.m_许可证号 = value;
				this.m_Is许可证号Null = false;
			}
		}
		
		/// <summary>属性签发时间</summary>
		[Member("签发时间", "签发时间", "System.DateTime", 8, false, false, "签发时间")]
		[Browsable(true)]
		[DisplayName("签发时间")]
		[ReadOnly(false)]
		public System.DateTime 签发时间 {
			get {
				return this.m_签发时间;
			}
			set {
				this.m_签发时间 = value;
				this.m_Is签发时间Null = false;
			}
		}
		
		/// <summary>属性项目档案号</summary>
		[Member("项目档案号", "项目档案号", "System.String", 50, false, false, "项目档案号")]
		[Browsable(true)]
		[DisplayName("项目档案号")]
		[ReadOnly(false)]
		public string 项目档案号 {
			get {
				return this.m_项目档案号;
			}
			set {
				this.m_项目档案号 = value;
				this.m_Is项目档案号Null = false;
			}
		}
		
		/// <summary>属性缴费年度</summary>
		[Member("缴费年度", "缴费年度", "System.String", 8, false, false, "缴费年度")]
		[Browsable(true)]
		[DisplayName("缴费年度")]
		[ReadOnly(false)]
		public string 缴费年度 {
			get {
				return this.m_缴费年度;
			}
			set {
				this.m_缴费年度 = value;
				this.m_Is缴费年度Null = false;
			}
		}
		
		/// <summary>属性采矿权人</summary>
		[Member("采矿权人", "采矿权人", "System.String", 200, false, false, "采矿权人")]
		[Browsable(true)]
		[DisplayName("采矿权人")]
		[ReadOnly(false)]
		public string 采矿权人 {
			get {
				return this.m_采矿权人;
			}
			set {
				this.m_采矿权人 = value;
				this.m_Is采矿权人Null = false;
			}
		}
		
		/// <summary>属性矿区面积</summary>
		[Member("矿区面积", "矿区面积", "System.Double", 8, false, false, "矿区面积")]
		[Browsable(true)]
		[DisplayName("矿区面积")]
		[ReadOnly(false)]
		public double 矿区面积 {
			get {
				return this.m_矿区面积;
			}
			set {
				this.m_矿区面积 = value;
				this.m_Is矿区面积Null = false;
			}
		}
		
		/// <summary>属性应缴使用费</summary>
		[Member("应缴使用费", "应缴使用费", "System.Double", 8, false, false, "应缴使用费")]
		[Browsable(true)]
		[DisplayName("应缴使用费")]
		[ReadOnly(false)]
		public double 应缴使用费 {
			get {
				return this.m_应缴使用费;
			}
			set {
				this.m_应缴使用费 = value;
				this.m_Is应缴使用费Null = false;
			}
		}
		
		/// <summary>属性减缴金额</summary>
		[Member("减缴金额", "减缴金额", "System.Double", 8, false, false, "减缴金额")]
		[Browsable(true)]
		[DisplayName("减缴金额")]
		[ReadOnly(false)]
		public double 减缴金额 {
			get {
				return this.m_减缴金额;
			}
			set {
				this.m_减缴金额 = value;
				this.m_Is减缴金额Null = false;
			}
		}
		
		/// <summary>属性免缴金额</summary>
		[Member("免缴金额", "免缴金额", "System.Double", 8, false, false, "免缴金额")]
		[Browsable(true)]
		[DisplayName("免缴金额")]
		[ReadOnly(false)]
		public double 免缴金额 {
			get {
				return this.m_免缴金额;
			}
			set {
				this.m_免缴金额 = value;
				this.m_Is免缴金额Null = false;
			}
		}
		
		/// <summary>属性实缴使用费</summary>
		[Member("实缴使用费", "实缴使用费", "System.Double", 8, false, false, "实缴使用费")]
		[Browsable(true)]
		[DisplayName("实缴使用费")]
		[ReadOnly(false)]
		public double 实缴使用费 {
			get {
				return this.m_实缴使用费;
			}
			set {
				this.m_实缴使用费 = value;
				this.m_Is实缴使用费Null = false;
			}
		}
		
		/// <summary>属性采矿权价款</summary>
		[Member("采矿权价款", "采矿权价款", "System.Double", 8, false, false, "采矿权价款")]
		[Browsable(true)]
		[DisplayName("采矿权价款")]
		[ReadOnly(false)]
		public double 采矿权价款 {
			get {
				return this.m_采矿权价款;
			}
			set {
				this.m_采矿权价款 = value;
				this.m_Is采矿权价款Null = false;
			}
		}
		
		/// <summary>属性缴费日期</summary>
		[Member("缴费日期", "缴费日期", "System.DateTime", 8, false, false, "缴费日期")]
		[Browsable(true)]
		[DisplayName("缴费日期")]
		[ReadOnly(false)]
		public System.DateTime 缴费日期 {
			get {
				return this.m_缴费日期;
			}
			set {
				this.m_缴费日期 = value;
				this.m_Is缴费日期Null = false;
			}
		}
		
		/// <summary>属性缴款人</summary>
		[Member("缴款人", "缴款人", "System.String", 200, false, false, "缴款人")]
		[Browsable(true)]
		[DisplayName("缴款人")]
		[ReadOnly(false)]
		public string 缴款人 {
			get {
				return this.m_缴款人;
			}
			set {
				this.m_缴款人 = value;
				this.m_Is缴款人Null = false;
			}
		}
		
		/// <summary>属性滞纳金</summary>
		[Member("滞纳金", "滞纳金", "System.Double", 8, false, false, "滞纳金")]
		[Browsable(true)]
		[DisplayName("滞纳金")]
		[ReadOnly(false)]
		public double 滞纳金 {
			get {
				return this.m_滞纳金;
			}
			set {
				this.m_滞纳金 = value;
				this.m_Is滞纳金Null = false;
			}
		}
		
		/// <summary>属性滞纳说明</summary>
		[Member("滞纳说明", "滞纳说明", "System.String", 510, false, false, "滞纳说明")]
		[Browsable(true)]
		[DisplayName("滞纳说明")]
		[ReadOnly(false)]
		public string 滞纳说明 {
			get {
				return this.m_滞纳说明;
			}
			set {
				this.m_滞纳说明 = value;
				this.m_Is滞纳说明Null = false;
			}
		}
		
		/// <summary>属性备注</summary>
		[Member("备注", "备注", "System.String", 510, false, false, "备注")]
		[Browsable(true)]
		[DisplayName("备注")]
		[ReadOnly(false)]
		public string 备注 {
			get {
				return this.m_备注;
			}
			set {
				this.m_备注 = value;
				this.m_Is备注Null = false;
			}
		}
		
		/// <summary>属性DJ_CK_GUID</summary>
		[Member("DJ_CK_GUID", "DJ_CK_GUID", "System.String", 100, false, false, "DJ_CK_GUID")]
		[Browsable(true)]
		[DisplayName("DJ_CK_GUID")]
		[ReadOnly(false)]
		public string DJ_CK_GUID {
			get {
				return this.m_DJ_CK_GUID;
			}
			set {
				this.m_DJ_CK_GUID = value;
				this.m_IsDJ_CK_GUIDNull = false;
			}
		}
		
		/// <summary>属性BSM</summary>
		[Member("BSM", "BSM", true, true, "BSM")]
		[Browsable(true)]
		[DisplayName("BSM")]
		[ReadOnly(false)]
		public int BSM {
			get {
				return this.m_BSM;
			}
			set {
				this.m_BSM = value;
				this.m_IsBSMNull = false;
				if ((this.OnOIDChanged != null)) {
					this.OnOIDChanged(this, null);
				}
			}
		}
		
		/// <summary>对象ID发生变化的时候触发的事件</summary>
		public event SuperORM.Attributes.OIDChangedHandler OnOIDChanged;
		
		/// <summary>属性改变的时候</summary>
		public event SuperORM.PropertyChangeHandler PropertyChanged;
		
		// 重载的方法，判断两个对象是否相等，判断条件是两个对象的主键值是否相等。
		public override bool Equals(object obj) {
			采矿权缴费 采矿权缴费 = ((采矿权缴费)(obj));
			if ((采矿权缴费.BSM == this.m_BSM)) {
				return true;
			}
			else {
				return false;
			}
		}
		
		/// <summary>判断某一个属性是否为空</summary>
		public override bool IsNull(string propname) {
			if (propname.Equals("CK_GUID")) {
				return this.m_IsCK_GUIDNull;
			}
			if (propname.Equals("许可证号")) {
				return this.m_Is许可证号Null;
			}
			if (propname.Equals("签发时间")) {
				return this.m_Is签发时间Null;
			}
			if (propname.Equals("项目档案号")) {
				return this.m_Is项目档案号Null;
			}
			if (propname.Equals("缴费年度")) {
				return this.m_Is缴费年度Null;
			}
			if (propname.Equals("采矿权人")) {
				return this.m_Is采矿权人Null;
			}
			if (propname.Equals("矿区面积")) {
				return this.m_Is矿区面积Null;
			}
			if (propname.Equals("应缴使用费")) {
				return this.m_Is应缴使用费Null;
			}
			if (propname.Equals("减缴金额")) {
				return this.m_Is减缴金额Null;
			}
			if (propname.Equals("免缴金额")) {
				return this.m_Is免缴金额Null;
			}
			if (propname.Equals("实缴使用费")) {
				return this.m_Is实缴使用费Null;
			}
			if (propname.Equals("采矿权价款")) {
				return this.m_Is采矿权价款Null;
			}
			if (propname.Equals("缴费日期")) {
				return this.m_Is缴费日期Null;
			}
			if (propname.Equals("缴款人")) {
				return this.m_Is缴款人Null;
			}
			if (propname.Equals("滞纳金")) {
				return this.m_Is滞纳金Null;
			}
			if (propname.Equals("滞纳说明")) {
				return this.m_Is滞纳说明Null;
			}
			if (propname.Equals("备注")) {
				return this.m_Is备注Null;
			}
			if (propname.Equals("DJ_CK_GUID")) {
				return this.m_IsDJ_CK_GUIDNull;
			}
			if (propname.Equals("BSM")) {
				return this.m_IsBSMNull;
			}
			return true;
		}
		
		/// <summary>将某个属性设置为空</summary>
		public override void SetNull(string propname) {
			if (propname.Equals("CK_GUID")) {
				this.m_IsCK_GUIDNull = true;
				return;
			}
			if (propname.Equals("许可证号")) {
				this.m_Is许可证号Null = true;
				return;
			}
			if (propname.Equals("签发时间")) {
				this.m_Is签发时间Null = true;
				return;
			}
			if (propname.Equals("项目档案号")) {
				this.m_Is项目档案号Null = true;
				return;
			}
			if (propname.Equals("缴费年度")) {
				this.m_Is缴费年度Null = true;
				return;
			}
			if (propname.Equals("采矿权人")) {
				this.m_Is采矿权人Null = true;
				return;
			}
			if (propname.Equals("矿区面积")) {
				this.m_Is矿区面积Null = true;
				return;
			}
			if (propname.Equals("应缴使用费")) {
				this.m_Is应缴使用费Null = true;
				return;
			}
			if (propname.Equals("减缴金额")) {
				this.m_Is减缴金额Null = true;
				return;
			}
			if (propname.Equals("免缴金额")) {
				this.m_Is免缴金额Null = true;
				return;
			}
			if (propname.Equals("实缴使用费")) {
				this.m_Is实缴使用费Null = true;
				return;
			}
			if (propname.Equals("采矿权价款")) {
				this.m_Is采矿权价款Null = true;
				return;
			}
			if (propname.Equals("缴费日期")) {
				this.m_Is缴费日期Null = true;
				return;
			}
			if (propname.Equals("缴款人")) {
				this.m_Is缴款人Null = true;
				return;
			}
			if (propname.Equals("滞纳金")) {
				this.m_Is滞纳金Null = true;
				return;
			}
			if (propname.Equals("滞纳说明")) {
				this.m_Is滞纳说明Null = true;
				return;
			}
			if (propname.Equals("备注")) {
				this.m_Is备注Null = true;
				return;
			}
			if (propname.Equals("DJ_CK_GUID")) {
				this.m_IsDJ_CK_GUIDNull = true;
				return;
			}
			if (propname.Equals("BSM")) {
				this.m_IsBSMNull = true;
				return;
			}
		}
	}
}
